
import React, { Children, lazy } from "react";
import { Navigate } from "react-router-dom";
import LoginCode from '../pages/Login/LoginCode'
import PasswordLogin from '../pages/Login/PasswordLogin'
import VerifyCode from '../pages/Login/VerifyCode'
//////徐梓鑫开始
import Shou from "../pages/徐梓鑫的项目分支/jsx分支/Shou";
import Main from "../pages/徐梓鑫的项目分支/jsx分支/Main";
import My from "../pages/徐梓鑫的项目分支/jsx分支/My";
import Finished from '../pages/徐梓鑫的项目分支/jsx分支/Finished'
import UnFinished from '../pages/徐梓鑫的项目分支/jsx分支/unFinished'
import Shop from "../pages/徐梓鑫的项目分支/jsx分支/Shop";
import Status from "../pages/徐梓鑫的项目分支/jsx分支/Status";
import UnStatus from "../pages/徐梓鑫的项目分支/jsx分支/UnStatus";
import Money from "../pages/徐梓鑫的项目分支/jsx分支/Money";
import Detail from "../pages/徐梓鑫的项目分支/jsx分支/Detail";
import Pingjia from "../pages/徐梓鑫的项目分支/jsx分支/Pingjia";
// import CheShi from "../pages/徐梓鑫的项目分支/jsx分支/CheShi";
import Zhanghu from "../pages/徐梓鑫的项目分支/jsx分支/Zhanghu";
import XiaJia from "../pages/徐梓鑫的项目分支/jsx分支/XiaJia";
import Tuan from "../pages/徐梓鑫的项目分支/jsx分支/Tuan";
import Shezhi from "../pages/徐梓鑫的项目分支/jsx分支/Shezhi";
import My_huan from "../pages/徐梓鑫的项目分支/jsx分支/My_huan";
import My_gonggao from "../pages/徐梓鑫的项目分支/jsx分支/My_gonggao";
import Money_chong from "../pages/徐梓鑫的项目分支/jsx分支/Money_chong";
import My_xinxi from "../pages/徐梓鑫的项目分支/jsx分支/My_xinxi";
import Update_zhanghao from "../pages/徐梓鑫的项目分支/jsx分支/Update_zhanghao";
import Shop_detail from "../pages/徐梓鑫的项目分支/jsx分支/Shop_detail";
// 刘旭的分支
import Page from "../pages/Lx-branch/views/page"
import Order from "../pages/Lx-branch/views/Order-not"
import Chat from "../pages/Lx-branch/views/Chat"

import Order from '../pages/蔡瑞勇的分支/Order'
////结束
const isToken = sessionStorage.getItem('isToken')
const routers = [
    { path: '/', element: <Navigate to='/loginCode' /> },
    {path:'/loginCode',element:<LoginCode />},
    {path:'/passwordLogin',element:<PasswordLogin />},
    {path:'/verifyCode',element:<VerifyCode />},
    //////////////////徐梓鑫的页面路由开始
    {path:'/',element:<Shou></Shou>},
    { path: '/shou', element:<Shou></Shou>,
    children:[
        {path:'main',element:<Main></Main>},
        {path:'my',element:<My></My>},
        {path:'finished',element:<Finished></Finished>},
        {path:'unfinished',element:<UnFinished></UnFinished>},
        {path:'order',element:<Order></Order>}
    ]
    },
    {path:'/shop',element:<Shop></Shop>},//商品管理页面
    {path:'/status',element:<Status></Status>},//上架页面
    {path:'/unstatus',element:<UnStatus></UnStatus>},//下架页面
    {path:'/money',element:<Money></Money>},//财务管理页面
    {path:'/detail',element:<Detail></Detail>},//财务明细页面
    {path:'/pingjia',element:<Pingjia></Pingjia>},//商家评价页面
    {path:'/zhanghu',element:<Zhanghu></Zhanghu>},//商家账户信息
    {path:'/xiajia',element:<XiaJia></XiaJia>},//批量下架页面
    {path:'/tuangou',element:<Tuan></Tuan>},//团购页面
    {path:'/shezhi',element:<Shezhi></Shezhi>},//我的设置页面
    {path:'/huanjing',element:<My_huan></My_huan>},//我的店铺环境页面
    {path:'/gonggao',element:<My_gonggao></My_gonggao>},//我的公告信息
    {path:'/chongzhi',element:<Money_chong></Money_chong>},//充值页面
    {path:'/xinxi',element:<My_xinxi></My_xinxi>},//店铺信息页面
    {path:'/update_zhanghu',element:<Update_zhanghao></Update_zhanghao>},//修改账户页面
    {path:'/shop_detail',element:<Shop_detail></Shop_detail>},//商家商品详情页面}
    /////////////////徐梓鑫的页面路由结束
    // 刘旭路由
    { path:'/page', element:<Page/>},
    { path:'/order-not', element:<Order/>},
    { path:'/chat', element:<Chat/>}
    
    
]
export default routers